    <div class="content col-xs-12 col-sm-10">
                        <div class="banner">
                            <p class="fl">内容管理 &nbsp; &nbsp;|| &nbsp; &nbsp;  <a href="/article/add">添加内容</a></p>

                                     <tbody>

                        </div>
                        <div id="result">
                         <?php 
                            foreach ($cataloglist as $cataitem):
                        ?>
                                  <span>  &nbsp; &nbsp;  <a href="/article/admin/<?=$cataitem['id']?>"><?=$cataitem['title']?></a>&nbsp; &nbsp;</span>
                            
                  
                        <?php endforeach; ?>
                        </div>

                        <div class="table">
                            <table>
                                <thead>
                                    <tr>
                                        <td width="20%">栏目</td>
                                        <td width="30%">标题</td>
                                        <td width="20%">图片</td>                     
                                        <td width="15%">更新时间</td>
                                        <td width="15%">操作</td>
                                    </tr>
                                </thead>
                                <tbody>
                        <?php 
                                foreach ($artlist as $art_item):
                        ?>
                          <tr>
                            <td><?=$art_item['cname']?></td>
                            <td><a href="/article/detail/<?=$art_item['id']?>"><?=$art_item['title']?></a></td>
                            <td><a href="<?=$art_item['image']?>" target="_blank"><img width=40 alt="<?=$art_item['image']?>" src="<?=$art_item['image']?>"></a></td>
                            <td><?php echo date("Y-m-d", $art_item['update_time']); ?></td>
                            <td><a href="/article/delete/<?=$art_item['id']?>">删除</a><a href="/article/update/<?=$art_item['id']?>">修改</a></td>

                        </tr>
                      
                     <?php endforeach; ?>
                                           
                </tbody>
                                
                            </table>
                        </div>
                    
                   <!--  <div class="page">
              <div class="big first fl">首页</div>
              <div class="big fl">←</div>
              <div class="num cur fl">1</div>
              <div class="num fl">2</div>
              <div class="num fl">3</div>
              <div class="num fl">4</div>
              <div class="num fl">5</div>
              <div class="big fl">→</div>
              <div class="big last fl">末页</div>
            </div> -->
                </div>
            </div>
        </div>
        <script type="text/javascript">
            function syncwx(){
                
                $.get( "/article/syncfromwx", function( data ) {
                        // window.location.reload();
                        $("#result" ).html(data);
                    });
            }

        </script>
        
       